package com.yss.sofa.ide.builder.dbscript.ui.wizard;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;

import com.yss.sofa.ide.builder.dbscript.ui.composite.CreateProject;
import com.yss.sofa.ide.ui.wizard.BaseWizardPage;

/**
 * @author huangsq
 * @version 1.0, 2013-11-15
 * @since 1.0, 2013-11-15
 */
public class NewProjectPate extends BaseWizardPage {

  /**
   * Create the wizard.
   */
  public NewProjectPate(String pageName) {
    super(pageName);
    setTitle("新建工程");
    setDescription("新建一个数据库脚本转换工程");
  }

  /**
   * Create contents of the wizard.
   * 
   * @param parent
   */
  public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);

    container.setLayout(new GridLayout(1, false));

    CreateProject createProject = new CreateProject(container, SWT.NONE);
    createProject.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
    setControl(container);
  }

  public boolean backButtonPressed() {
    return true;
  }

  public boolean closePressed() {
    return true;
  }

  public boolean finishButtonPressed() {
    return false;
  }

  public boolean nextButtonPressed() {
    return true;
  }
}
